<?php

namespace app\api\controller;

use think\Controller;
/**
 * @title 获取配置信息
 * @description 获取配置列表
 * @group 微信报名分销
 */
class Config extends Base
{
    /**
     * @title 获取配置信息(get)
     * @description 接口说明
     * @author hardy
     * @url /api/Config
     * @method GET
     *
     *
     */
    public function gets()
    {
        $type = input('type', 'key-value');
        $model = $this->controller;
        $data_list = model($model)->getConfigList($type);
        $this->responseSuccess($data_list);
    }
}
